]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
StThemeNode: support border-image: none
authorOwen W. Taylor <otaylor@fishsoup.net>
Mon, 21 Mar 2011 00:49:40 +0000 (20:49 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Mon, 21 Mar 2011 13:16:32 +0000 (09:16 -0400)
Treat border-image: none as a valid specification that overwrites any
previously specified border image.

https://bugzilla.gnome.org/show_bug.cgi?id=644788

src/st/st-theme-node.c

index 2a857ab58e625bcb3f911a3dc5afe5f45780b394..7adfd1342853a3cd1cc2f3c53a64ff0f8a834b12 100644 (file)
@@ -2518,6 +2518,15 @@ st_theme_node_get_border_image (StThemeNode *node)
 
           char *filename;
 
+          /* Support border-image: none; to suppress a previously specified border image */
+          if (term_is_none (term))
+            {
+              if (term->next == NULL)
+                return NULL;
+              else
+                goto next_property;
+            }
+
           /* First term must be the URL to the image */
           if (term->type != TERM_URI)
             goto next_property;